package com.ctshk.rpc.order.ship.req;

import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * <p>
 * 船票订单
 * </p>
 *
 * @author 刘蕾
 * @since 2021-03-16
 */
@Data
@ApiModel(value="ShipOrder对象", description="船票订单")
public class ShipOrderDetailDateReq extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @NotNull(message = "线下自营ID不能为空")
    private Long offLineId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @ApiModelProperty(value = "票数")
    private Integer ticketNumber;
}
